---
layout: m1x_soap
title: Magento Info
---

<h2><a name="magento.info-MagentoInfoAPI"></a>Magento Info API</h2>

<p>Allows you to get information about the current Magento installation.</p>

<h3><a name="magento.info-Module%3AMageCore"></a>Module: Mage_Core</h3>

<h4><a name="magento.info-Resource%3Acoremagento"></a>Resource: core_magento</h4>

<p><b>Aliases:</b> magento</p>


<h5><a name="magento.info-Method%3A"></a>Method:</h5>

<ul>
	<li>core_magento.info (SOAP V1)</li>
	<li>magentoInfo (SOAP V2)</li>
</ul>


<p>Allows you to retrieve information about Magento version and edition.</p>

<p><b>Aliases</b>: magento.info</p>

<p><b>Arguments</b>:</p>

<table><tbody>
<tr>
<th> Type <br class="atl-forced-newline" /> </th>
<th> Name <br class="atl-forced-newline" /> </th>
<th> Description <br class="atl-forced-newline" /> </th>
</tr>
<tr>
<td> string <br class="atl-forced-newline" /> </td>
<td> sessionId <br class="atl-forced-newline" /> </td>
<td> Session ID </td>
</tr>
</tbody></table>

<p><b>Returns</b>:</p>

<table><tbody>
<tr>
<th> Type <br class="atl-forced-newline" /> </th>
<th> Name <br class="atl-forced-newline" /> </th>
<th> Description <br class="atl-forced-newline" /> </th>
</tr>
<tr>
<td> string </td>
<td> magento_version </td>
<td> Magento version </td>
</tr>
<tr>
<td> string </td>
<td> magento_edition </td>
<td> Magento edition (Community, Professional, Enterprise) </td>
</tr>
</tbody></table>



<h4><a name="magento.info-Examples"></a>Examples</h4>

<h5><a name="magento.info-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
$sessionId = $proxy-&gt;login('apiUser', 'apiKey');
$magentoInfo = $proxy-&gt;call(
    $sessionId,
    'magento.info'
);</pre>
		</div>
</div></div>

<h5><a name="magento.info-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary

$result = $proxy-&gt;magentoInfo($sessionId);
var_dump($result);</pre>
		</div>
</div></div>


<h5><a name="magento.info-RequestExampleSOAPV2%28WSIComplianceMode%29"></a>Request Example SOAP V2 (WS-I Compliance Mode)</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); 

$sessionId = $proxy-&gt;login((object)array('username' =&gt; 'apiUser', 'apiKey' =&gt; 'apiKey')); 
 
$result = $proxy-&gt;magentoInfo((object)array('sessionId' =&gt; $sessionId-&gt;result));   

var_dump($result-&gt;result);</pre>
		</div>
</div></div>

<h5><a name="magento.info-ResponseExampleSOAPV1"></a>Response Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div>
		<pre class="theme: Default; brush: php; gutter: false">array
  'magento_edition' =&gt; string 'Community' (length=9)
  'magento_version' =&gt; string '1.4.2.0-rc1' (length=11)</pre>
		</div>
</div></div>


